package com.xuanwu.ai.flow.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "AI组件表")
@TableName(value = "component")
public class AIComponent {

    @TableId(value = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    @TableField(value = "name")
    @ApiModelProperty(value = "组件名")
    private String name;

    @TableField(value = "type")
    @ApiModelProperty(value = "组件类型")
    private String type;

    @TableField(value = "class")
    @ApiModelProperty(value = "组件路径")
    private String classpath;

    @TableField(value = "description")
    @ApiModelProperty(value = "组件描述")
    private String description;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
